package com.dream.inspect.modules.business.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 行政区划表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-06-16 17:04:57
 */
@TableName("sys_xzqh")
@JsonInclude(Include.NON_NULL)
public class SysXzqhEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 行政区划代码
	 */
	@TableId
	private Long xzqhId;
	private String code;
	private String fullName;
	private String name;
	private Long parentId;
	private String level;
	@TableField(exist = false)
	private List<SysXzqhEntity> children =new ArrayList<SysXzqhEntity>(10);

	public Long getXzqhId() {
		return xzqhId;
	}

	public void setXzqhId(Long xzqhId) {
		this.xzqhId = xzqhId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public List<SysXzqhEntity> getChildren() {
		return children;
	}

	public void setChildren(List<SysXzqhEntity> children) {
		this.children = children;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}
}
